import java.util.Scanner;

public class Homework8 {
    public static void main(String[] args) {
        Scanner a = new Scanner(System.in);
        System.out.println("输入工资");
        double b = a.nextInt();
       if (b<3500){
           System.out.println("不交税");
       }else if (b>=3500&b<8000){
           double money1=(b-3500)*0.05;
           System.out.println("交税"+money1);
       }else if (b>=8000&&b<15000){
           double money2=(b-8000)*0.1;
           System.out.println("交税"+money2);
       }else if (b>=15000){
           double money3=(b-15000)*0.15;
           System.out.println("交税"+money3);
       }
    }
}